Call gtk_tooltip_hide_tooltip() even if the tooltip is not visible yet.
authorMatthias Clasen <mclasen@redhat.com>
Wed, 25 Jul 2007 17:45:22 +0000 (17:45 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Wed, 25 Jul 2007 17:45:22 +0000 (17:45 +0000)
2007-07-25  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtktooltip.c (_gtk_tooltip_handle_event): Call
        gtk_tooltip_hide_tooltip() even if the tooltip is not
        visible yet. This fixes annoying dangling tooltips
        on systray icons.

svn path=/trunk/; revision=18544

ChangeLog
gtk/gtktooltip.c

index e8bdeeffc496afbe25f797e5975cd98b2b1daf86..8694cfaa0d94dfa1a5b35c6a5e3f44433481dbe2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-07-25  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtktooltip.c (_gtk_tooltip_handle_event): Call
+       gtk_tooltip_hide_tooltip() even if the tooltip is not
+       visible yet. This fixes annoying dangling tooltips
+       on systray icons.  
+
 2007-07-24  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/gtkiconcachevalidator.c: Silence the validator.
index 2d60b7c65dc760a303d10456ed3d9f8157206fd2..77d465ca903d5166af244047275694651f24c7e4 100644 (file)
@@ -1118,7 +1118,7 @@ _gtk_tooltip_handle_event (GdkEvent *event)
   /* Hide the tooltip when there's no new tooltip widget */
   if (!has_tooltip_widget)
     {
-      if (current_tooltip && GTK_TOOLTIP_VISIBLE (current_tooltip))
+      if (current_tooltip)
        gtk_tooltip_hide_tooltip (current_tooltip);
 
       return;